home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / jx4nt123.zip / MAKEFILE < prev    next >
Text File  |  1994-09-05  |  4KB  |  115 lines

  1. # jax4th makefile ... 32-bit ANS Forth for Windows NT
  2. # copyright (c) 1993, 1994 by jack j. woehr
  3. # p.o. box 51, golden, co 80402-0051
  4. # jax@well.sf.ca.us | JAX on GEnie | 72203.1320@compuserve.com
  5. # sysop, rcfb (303) 278-0364
  6.  
  7. # This program is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details. (copying.txt)
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. !include <ntwin32.mak>
  22.  
  23. #################################################
  24. #    The project and ancillary products    #
  25. #################################################
  26. PROJ = jax4th
  27. EXES = jax4th.exe uniblock.exe uniascii.exe
  28. CUTILS = uniblock.exe uniascii.exe
  29. DOCS = doc\jax4th.doc
  30. EXAMPLES = example\paste.blk example\shortest.f
  31. UTILS = utils\utils.utf utils\editor.utf utils\memory.utf utils\syscalls.utf utils\ub2t.utf
  32. UTILS1 = utils\yiqing.utf
  33. LICENSE = doc\copying.txt
  34. MISC = doc\read_1st.txt
  35.  
  36. #########################
  37. #    Source files    #
  38. #########################
  39. SOURCES = jax4th.a jax4th.i jx4files.a windows.i makefile uniblock.c uniascii.c
  40. RESOURCES = jax4th.ico jax4th.rc
  41.  
  42. #################################
  43. #    Assembly control    #
  44. #################################
  45. MASM=ml.exe
  46. # make sure the correct ml.exe is in your path!
  47. MASMOPTS= /c /Cp /Ta
  48. # Assemble without linking, preserve case of user identifiers, assemble non-.ASM files.
  49. MASMEXTOPTS= /Sa /Fl$(PROJ).lst
  50. # Generate a listing file.
  51. REV = 123
  52. # Current revision
  53.  
  54. # Make all executables
  55. all: $(EXES)
  56.  
  57. # Make just the C-coded utilities
  58. cutils: $(CUTILS)
  59.  
  60. # Make Jax4th
  61. $(PROJ).exe: $(PROJ).obj $(PROJ).rbj
  62.     $(link) -subsystem:console -stack:0x8000,0x8000 -entry:main \
  63.     -section:.text,w -out:$*.exe $(PROJ).obj $(PROJ).rbj $(baselibs) \
  64.     comdlg32.lib
  65.  
  66. $(PROJ).obj: $(PROJ).a $(PROJ).i jx4files.a windows.i makefile
  67.     $(MASM) $(MASMOPTS) $(PROJ).a
  68. #    $(MASM) $(MASMEXTOPTS) $(MASMOPTS) $(PROJ).a
  69. # Choose the second line instead of the first if you want a listing file.
  70.  
  71. $(PROJ).rbj: $(PROJ).res
  72.         cvtres -$(CPU) $(PROJ).res -o $(PROJ).rbj
  73.  
  74. $(PROJ).res: $(PROJ).rc
  75.     $(rc) $(rcvars) -r -fo $(PROJ).res $(cvars) $(PROJ).rc
  76.  
  77. # Make the Unicode <> ASCII utilities
  78. uniblock.exe: uniblock.obj
  79.     $(link) $(conflags) -out:$*.exe $** $(conlibs)
  80.  
  81. uniascii.exe: uniascii.obj
  82.     $(link) $(conflags) -out:$*.exe $** $(conlibs)
  83.  
  84. # Rules
  85. .c.obj:
  86.   $(cc) $(cflags) $(cvars) $*.c
  87.  
  88. noobjs:
  89.     -erase *.obj
  90.  
  91. nolistings:
  92.     -erase *.lst *.crf
  93.  
  94. clean:
  95.     -erase *.obj
  96.     -erase *.exe
  97.  
  98. #################################
  99. #     Distribution archive    #
  100. #################################
  101.  
  102. distribution:
  103.     -pkzip -a    distrib\jx4nt$(REV).zip $(LICENSE) $(MISC)
  104.     -pkzip -a -P distrib\jx4nt$(REV).zip $(EXES)
  105.     -pkzip -a -P distrib\jx4nt$(REV).zip $(SOURCES)
  106.     -pkzip -a -P distrib\jx4nt$(REV).zip $(RESOURCES)
  107.     -pkzip -a -P distrib\jx4nt$(REV).zip $(DOCS)
  108.     -pkzip -a -P distrib\jx4nt$(REV).zip $(EXAMPLES)
  109.     -pkzip -a -P distrib\jx4nt$(REV).zip $(UTILS)
  110.     -pkzip -a -P distrib\jx4nt$(REV).zip $(UTILS1)
  111.  
  112. #########################
  113. #     END of Makefile    #
  114. #########################
  115.